package com.huawei.travel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huawei.travel.mapper.AdminMapper;
import com.huawei.travel.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminService {
    @Autowired
    private AdminMapper adminMapper;

    public Page<Admin> findPage(int page,int size){
        Page<Admin> adminPage = adminMapper.selectPage(new Page<>(page, size), null);
        return adminPage;
    }
}
